package com.ruoyi.manage.cms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.ListUtil;
import com.ruoyi.manage.cms.domain.HbHqzc;
import com.ruoyi.manage.cms.mapper.HbHqzcMapper;
import com.ruoyi.manage.cms.service.IHbHqzcService;
import org.springframework.stereotype.Service;


/**
 * 惠企政策Service业务层处理
 *
 * @author ruoyi
 * @date 2025-07-18
 */
@Service
public class HbHqzcServiceImpl extends ServiceImpl<HbHqzcMapper, HbHqzc> implements IHbHqzcService{


    @Override
    public HbHqzc queryGetById(String id){
        HbHqzc hbHqzc = this.getById(id);
        return hbHqzc;
    }

    /**
     * 新增惠企政策
     *
     * @param hbHqzc 惠企政策
     * @return 结果
     */
    @Override
    public boolean addHbHqzc(HbHqzc hbHqzc){
        boolean save =this.save(hbHqzc);
        return save;
    }

    /**
     * 修改惠企政策
     *
     * @param hbHqzc 惠企政策
     * @return 结果
     */
    @Override
    public boolean updateHbHqzc(HbHqzc hbHqzc){
        return this.updateById(hbHqzc);
    }

    /**
     * 批量删除惠企政策
     *
     * @param ids 需要删除的惠企政策主键
     * @return 结果
     */
    @Override
    public boolean deleteHbHqzcByIds(String[] ids){
        return this.removeByIds(ListUtil.toList(ids));
    }

}
